import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options


from selenium.webdriver.common.by import By
# 定义配置的实例对象option
option = Options()
# 修改实例属性为debug 模式的ip+端口
option.debugger_address = "localhost:9222"
# 实例化driver的时候，添加option配置
driver = webdriver.Chrome(options=option)
# driver = webdriver.Chrome()
driver.get("https://work.weixin.qq.com/wework_admin/frame")
# 点击添加成员的操作
driver.find_element(By.CSS_SELECTOR, ".ww_indexImg_AddMember").click()
time.sleep(3)
driver.find_element(By.ID, "username").send_keys("hogwarts")



